//:  v.book.read.tip.interpreter.GreenHouseController.java
package v.book.read.tip.interpreter;

import org.python.core.PyException;
import org.python.util.PythonInterpreter;

import junit.awtui.TestRunner;
import junit.framework.TestCase;

/**
 *
 * @author 小败
 */
public class GreenHouseController extends TestCase {
    
    PythonInterpreter interp = new PythonInterpreter();
    
    public void test() throws PyException {
        System.out.println("Loading GreeHouse Language");
        interp.execfile("GreenHouseLanguage.py");
        System.out.println("Loding GreenHouse Script");
        interp.execfile("Schedule.ghs");
        System.out.println("Executing GreenHouse Script");
        interp.exec("run()");
    }
    
    public static void main(String[] args) throws PyException {
        TestRunner.run(GreenHouseController.class);
    }

}
